<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class WorksTeacher extends Model
{
    protected $table = 'works_teacher';
    
    public $timestamps = FALSE;
    
    public function teacherInfo(){
        return $this->hasOne('App\Models\Teacher' , 'user_id', 'teacher_id')->withTrashed();
    }
    
    public function worksInfo(){
        return $this->hasOne('App\Models\Works' , 'id', 'works_id')->withTrashed();
    }
}
